package grape.wx.service.mp.reply.api;

import grape.wx.service.mp.reply.po.MpMsgReply;
import grape.common.service.common.IBaseService;
import me.chanjar.weixin.common.session.WxSessionManager;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;

import java.util.Map;

/**
 * <p>
 * 公众号消息回复表 服务类
 * </p>
 *
 * @author yangwei
 * @since 2020-07-23
 */
public interface IMpMsgReplyService extends IBaseService<MpMsgReply> {


    /**
     * 获取匹配的消息回复内容
     * @param wxMessage
     * @param context
     * @param wxMpService
     * @param sessionManager
     * @return
     */
    public MpMsgReply getMatched(WxMpXmlMessage wxMessage, Map<String, Object> context, WxMpService wxMpService, WxSessionManager sessionManager);
}
